package com.ruoyi.project.jiaqin.supply.domain;

import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import com.ruoyi.project.system.member.domain.Member;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 供应对象 supply
 *
 * @author admin
 * @date 2020-12-28
 */
public class Supply extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 起批数量 */
    private String wholesaleQuantity;
    /** 0-送货上门 1-自取 */
    private Integer deliveryMode;
    /** 价格有效期 */
    private String priceValidity;
    /** 配送距离 */
    private String distributionDistance;
    /** 0-预售 1-现货 */
    private Integer spotGoods;
    /** 头像 */
    private String headpic;
    /** 是否关注：0-未关注 1-已关注 */
    private Integer isFollow;

    private Member member;

    /** 是否是企业：0-否 1-是 */
    private Integer isCompany;
    /** 企业或个人 */
    private String memberCompanyId;
    /** 拍照 */
    private String photoUrls;

    /** 行情数 */
    @Excel(name = "行情数")
    private Integer quotationNum;

    /** 供应数 */
    @Excel(name = "供应数")
    private Integer supplyNum;

    /** 求购数 */
    @Excel(name = "求购数")
    private Integer wantToBuyNum;

    public Integer getQuotationNum() {
        return quotationNum;
    }

    public void setQuotationNum(Integer quotationNum) {
        this.quotationNum = quotationNum;
    }

    public Integer getSupplyNum() {
        return supplyNum;
    }

    public void setSupplyNum(Integer supplyNum) {
        this.supplyNum = supplyNum;
    }

    public Integer getWantToBuyNum() {
        return wantToBuyNum;
    }

    public void setWantToBuyNum(Integer wantToBuyNum) {
        this.wantToBuyNum = wantToBuyNum;
    }

    public String getPhotoUrls() {
        return photoUrls;
    }

    public void setPhotoUrls(String photoUrls) {
        this.photoUrls = photoUrls;
    }

    public String getMemberCompanyId() {
        return memberCompanyId;
    }

    public void setMemberCompanyId(String memberCompanyId) {
        this.memberCompanyId = memberCompanyId;
    }

    public Integer getIsCompany() {
        return isCompany;
    }
    public void setIsCompany(Integer isCompany) {
        this.isCompany = isCompany;
    }

    public Member getMember() {
        return member;
    }
    public void setMember(Member member) {
        this.member = member;
    }

    public Integer getIsFollow() {
        return isFollow;
    }
    public void setIsFollow(Integer isFollow) {
        this.isFollow = isFollow;
    }

    public String getHeadpic() {
        return headpic;
    }
    public void setHeadpic(String headpic) {
        this.headpic = headpic;
    }

    public String getWholesaleQuantity() {
        return wholesaleQuantity;
    }
    public void setWholesaleQuantity(String wholesaleQuantity) {
        this.wholesaleQuantity = wholesaleQuantity;
    }

    public Integer getDeliveryMode() {
        return deliveryMode;
    }
    public void setDeliveryMode(Integer deliveryMode) {
        this.deliveryMode = deliveryMode;
    }

    public String getPriceValidity() {
        return priceValidity;
    }
    public void setPriceValidity(String priceValidity) {
        this.priceValidity = priceValidity;
    }

    public String getDistributionDistance() {
        return distributionDistance;
    }
    public void setDistributionDistance(String distributionDistance) {
        this.distributionDistance = distributionDistance;
    }

    public Integer getSpotGoods() {
        return spotGoods;
    }
    public void setSpotGoods(Integer spotGoods) {
        this.spotGoods = spotGoods;
    }

    /** id */
    private String id;

    /** 供应标题 */
    @Excel(name = "供应标题")
    private String title;

    /** 供应简介 */
    @Excel(name = "供应简介")
    private String info;

    /** 一级分类ID */
    @Excel(name = "一级分类ID")
    private String oneClassId;

    /** 二级分类ID */
    @Excel(name = "二级分类ID")
    private String twoClassId;

    /** 三级分类ID */
    @Excel(name = "三级分类ID")
    private String thrClassId;

    private String classNames;


    /** 发货地省份 */
    @Excel(name = "发货地省份")
    private Long province;

    /** 发货地城市 */
    @Excel(name = "发货地城市")
    private Long city;

    private String provinceCitys;

    /** 发货地区县 */
    @Excel(name = "发货地区县")
    private Long area;

    /** 省名 */
    private String provinceName;
    /** 市名 */
    private String cityName;
    /** 区县名 */
    private String areaName;

    public String getProvinceName() {
        return provinceName;
    }

    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    /** 产地(产地字符串) */
    @Excel(name = "产地(产地字符串)")
    private String deliverPlace;

    /** 价格 */
    @Excel(name = "价格")
    private String price;
    private Integer minPrice;
    private Integer maxPrice;
    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    /** 发布人 */
    @Excel(name = "发布人")
    private String releaseMember;

    /** 属性列表 */
    @Excel(name = "属性列表")
    private String attrVals;

    private String attrValsNames;

    /** 图片列表 */
    @Excel(name = "图片列表")
    private String imgUrls;

    /** 供应详情 */
    @Excel(name = "供应详情")
    private String details;

    /** 浏览量 */
    @Excel(name = "浏览量")
    private Long views;

    private String videoUrl;

    public String getVideoUrl() {
        return videoUrl;
    }

    public void setVideoUrl(String videoUrl) {
        this.videoUrl = videoUrl;
    }

    /** 拍照视频 */
    public String photoVideo;

    public String getPhotoVideo() {
        return photoVideo;
    }

    public void setPhotoVideo(String photoVideo) {
        this.photoVideo = photoVideo;
    }

    /** 手机号 */
    @Excel(name = "手机号")
    private String phonenum;

    /** 更新时间 */
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updateDate;

    /** 发布时间 */
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date releaseDate;

    private boolean collect;

    public boolean isCollect() {
        return collect;
    }

    public void setCollect(boolean collect) {
        this.collect = collect;
    }

    private Double distance;
    private Integer minDistance;
    private Integer maxDistance;

    /** 是否是行情官：0-否，1-是 */
    private Integer quotation;

    public Integer getQuotation() {
        return quotation;
    }

    public void setQuotation(Integer quotation) {
        this.quotation = quotation;
    }

    public Integer getMinPrice() {
        return minPrice;
    }

    public void setMinPrice(Integer minPrice) {
        this.minPrice = minPrice;
    }

    public Integer getMaxPrice() {
        return maxPrice;
    }

    public void setMaxPrice(Integer maxPrice) {
        this.maxPrice = maxPrice;
    }

    public Integer getMinDistance() {
        return minDistance;
    }

    public void setMinDistance(Integer minDistance) {
        this.minDistance = minDistance;
    }

    public Integer getMaxDistance() {
        return maxDistance;
    }

    public void setMaxDistance(Integer maxDistance) {
        this.maxDistance = maxDistance;
    }

    /** 发货地纬度 */
    @Excel(name = "发货地纬度")
    private Double latitude;

    /** 发货地经度 */
    @Excel(name = "发货地经度")
    private Double longitude;

    /** 状态(0-已上架1-已下架) */
    @Excel(name = "状态(0-已上架1-已下架)")
    private Integer status;

    private String sortField;

    private String sortType;

    /** 用户名*/
    private String memberName;

    public String getMemberName() {
        return memberName;
    }

    public void setMemberName(String memberName) {
        this.memberName = memberName;
    }

    public Double getDistance() {
        return distance;
    }

    public void setDistance(Double distance) {
        this.distance = distance;
    }

    public String getClassNames() {
        return classNames;
    }

    public void setClassNames(String classNames) {
        this.classNames = classNames;
    }

    public String getProvinceCitys() {
        return provinceCitys;
    }

    public void setProvinceCitys(String provinceCitys) {
        this.provinceCitys = provinceCitys;
    }

    public String getAttrValsNames() {
        return attrValsNames;
    }

    public void setAttrValsNames(String attrValsNames) {
        this.attrValsNames = attrValsNames;
    }

    public String getSortType() {
        return sortType;
    }

    public void setSortType(String sortType) {
        this.sortType = sortType;
    }

    public String getSortField() {
        return sortField;
    }

    public void setSortField(String sortField) {
        this.sortField = sortField;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }
    public void setInfo(String info)
    {
        this.info = info;
    }

    public String getInfo()
    {
        return info;
    }
    public void setOneClassId(String oneClassId)
    {
        this.oneClassId = oneClassId;
    }

    public String getOneClassId()
    {
        return oneClassId;
    }
    public void setTwoClassId(String twoClassId)
    {
        this.twoClassId = twoClassId;
    }

    public String getTwoClassId()
    {
        return twoClassId;
    }
    public void setThrClassId(String thrClassId)
    {
        this.thrClassId = thrClassId;
    }

    public String getThrClassId()
    {
        return thrClassId;
    }
    public void setProvince(Long province)
    {
        this.province = province;
    }

    public Long getProvince()
    {
        return province;
    }
    public void setCity(Long city)
    {
        this.city = city;
    }

    public Long getCity()
    {
        return city;
    }
    public void setArea(Long area)
    {
        this.area = area;
    }

    public Long getArea()
    {
        return area;
    }
    public void setDeliverPlace(String deliverPlace)
    {
        this.deliverPlace = deliverPlace;
    }

    public String getDeliverPlace()
    {
        return deliverPlace;
    }
    public void setPrice(String price)
    {
        this.price = price;
    }

    public String getPrice()
    {
        return price;
    }
    public void setUnit(String unit)
    {
        this.unit = unit;
    }

    public String getUnit()
    {
        return unit;
    }
    public void setReleaseMember(String releaseMember)
    {
        this.releaseMember = releaseMember;
    }

    public String getReleaseMember()
    {
        return releaseMember;
    }
    public void setAttrVals(String attrVals)
    {
        this.attrVals = attrVals;
    }

    public String getAttrVals()
    {
        return attrVals;
    }
    public void setImgUrls(String imgUrls)
    {
        this.imgUrls = imgUrls;
    }

    public String getImgUrls()
    {
        return imgUrls;
    }
    public void setDetails(String details)
    {
        this.details = details;
    }

    public String getDetails()
    {
        return details;
    }
    public void setViews(Long views)
    {
        this.views = views;
    }

    public Long getViews()
    {
        return views;
    }
    public void setPhonenum(String phonenum)
    {
        this.phonenum = phonenum;
    }

    public String getPhonenum()
    {
        return phonenum;
    }
    public void setUpdateDate(Date updateDate)
    {
        this.updateDate = updateDate;
    }

    public Date getUpdateDate()
    {
        return updateDate;
    }
    public void setReleaseDate(Date releaseDate)
    {
        this.releaseDate = releaseDate;
    }

    public Date getReleaseDate()
    {
        return releaseDate;
    }
    public void setLatitude(Double latitude)
    {
        this.latitude = latitude;
    }

    public Double getLatitude()
    {
        return latitude;
    }
    public void setLongitude(Double longitude)
    {
        this.longitude = longitude;
    }

    public Double getLongitude()
    {
        return longitude;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("info", getInfo())
            .append("oneClassId", getOneClassId())
            .append("twoClassId", getTwoClassId())
            .append("thrClassId", getThrClassId())
            .append("province", getProvince())
            .append("city", getCity())
            .append("area", getArea())
            .append("deliverPlace", getDeliverPlace())
            .append("price", getPrice())
            .append("unit", getUnit())
            .append("releaseMember", getReleaseMember())
            .append("attrVals", getAttrVals())
            .append("imgUrls", getImgUrls())
            .append("details", getDetails())
            .append("views", getViews())
            .append("phonenum", getPhonenum())
            .append("updateDate", getUpdateDate())
            .append("releaseDate", getReleaseDate())
            .append("latitude", getLatitude())
            .append("longitude", getLongitude())
            .append("status", getStatus())
            .append("wholesaleQuantity", getWholesaleQuantity())
            .append("deliveryMode", getDeliveryMode())
            .append("priceValidity", getPriceValidity())
            .append("distributionDistance", getDistributionDistance())
            .append("spotGoods", getSpotGoods())
            .toString();
    }
}
